<?php
namespace app\model;

use think\Model;

class CompanyModel extends Model
{
    protected $table = 'company';
    protected $resultSetType = 'collection';

    public function getCompanyList($page,$pagesize,$companyid,$fields){
        $sql = 'SELECT '.$fields.' FROM user WHERE companyid='.$companyid.' LIMIT '.$page.','.$pagesize;
    }
}
